//
//  MedicalHeader.h
//  YMMedical
//
//  Created by y s on 2023/6/19.
//

#ifndef MedicalHeader_h
#define MedicalHeader_h

// 登录成功
static NSString *const LoginedNoti_key = @"LoginedNoti_key";
// 登出成功
static NSString *const LogoutNoti_key = @"LogoutNoti_key";

//验证码位数
static NSInteger const SMS_number_key = 4;
/** 阿里云 */
static NSString *const Aliyun_Oss_Access_key = @"LTAI5tPdXZHsnMf9pzWuzQFM";
static NSString *const Aliyun_Oss_Secret_key  = @"PyNPSwuZmqwEj5nqlTsWx8n8RisT5J";

/** bugly Id */
static NSString *const bugly_appId_key  = @"0102be94a0";

#define K_IPHONE_X ({\
    BOOL isBangsScreen = NO; \
    if (@available(iOS 11.0, *)) { \
        UIWindow *window = [[UIApplication sharedApplication].windows firstObject]; \
        isBangsScreen = window.safeAreaInsets.bottom > 0; \
    } \
    isBangsScreen; \
})
#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)

// MARK:- 系统尺寸宏定义
#define SCREEN_WIDTH [SFitUtil screenWidth]
#define SCREEN_HEIGHT [SFitUtil screenHeight]
#define SCREEN_SCALE [[SFitUtil mainScreen] scale]
#define IS_IPHONE_X (IS_IPHONE && K_IPHONE_X)

#define STATUS_BAR_HEIGHT (IS_IPHONE_X?44:20)
#define NAV_BAR_HEIGHT 44
#define TOP_BAR_HEIGHT (STATUS_BAR_HEIGHT+NAV_BAR_HEIGHT)

#define IPHONE_X_BOTTOM_HEIGHT (IS_IPHONE_X?34:0)
#define BOTTOM_BAR_HEIGHT (IS_IPHONE_X?83:49)
#define TAB_BAR_HEIGHT 49


// 颜色
#define RGB(r, g, b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1]
#define RGBA(r, g, b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a]


#define WEAK_SELF __weak typeof(self) weakSelf = self
#define KLanguage(key) [YMLanguageUtil getLanguageWithKey:key]

#define kLanguage_change @"language_change_key"

#endif /* MedicalHeader_h */
